﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="../../Scripts/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.ui.button.js" type="text/javascript"></script>
    <link href="../../Content/jquery-ui-1.8.13.custom.css" rel="stylesheet" type="text/css" />
    @{   
        String controller = Url.RequestContext.RouteData.Values["controller"] as String;
        String action = Url.RequestContext.RouteData.Values["action"] as String;
        if (controller == "LoadDistribution")
        {
        <link href="@Url.Content("~/Content/themes/styleTree.css")" rel="stylesheet" type="text/css" />        
        <script src="../../Scripts/jquery.jstree.js" type="text/javascript"></script>
        <script src="../../Scripts/jquery.cookie.js" type="text/javascript"></script>
        <script src="../../Scripts/distributionLoadScripts.js" type="text/javascript"></script>     
        <script src="../../Scripts/jquery.ui.mouse.js" type="text/javascript"></script>
        <script src="../../Scripts/jquery.ui.draggable.js" type="text/javascript"></script>
        <script src="../../Scripts/jquery.ui.position.js" type="text/javascript"></script>
        <script src="../../Scripts/jquery.ui.resizable.js" type="text/javascript"></script>
        <script src="../../Scripts/jquery.ui.dialog.js" type="text/javascript"></script>
        <script src="../../Scripts/jquery.bgiframe-2.1.2.js" type="text/javascript"></script>   
        }
        if ((controller == "Allocation") && (action == "Create"))
        {        
        <script src="../../Scripts/jquery.ui.mouse.js" type="text/javascript"></script>
        <script src="../../Scripts/jquery.ui.draggable.js" type="text/javascript"></script>
        <script src="../../Scripts/jquery.ui.position.js" type="text/javascript"></script>
        <script src="../../Scripts/jquery.ui.resizable.js" type="text/javascript"></script>
        <script src="../../Scripts/jquery.ui.dialog.js" type="text/javascript"></script>
        <script src="../../Scripts/jquery.bgiframe-2.1.2.js" type="text/javascript"></script>
        }
    }
</head>
<body>
    <div class="page">
        <div id="header">
            <div id="logindisplay">
                @if (Request.IsAuthenticated)
                {
                    <text>Welcome <strong>@User.Identity.Name</strong>! [ @Html.ActionLink("Выйти", "LogOff", "Account")
                    ]</text>
                }
                else
                {
                    @:[ @Html.ActionLink("Войти", "LogOn", "Account") ]
                }
            </div>
            <div id="menucontainer">
                <div id='menuButtons'>
                    <ul id="menu">                    
                        <li>@Html.ActionLink("Учебный план", "Index", "StudyPlan")</li>
							<li id="subMenu">@Html.ActionLink("Учебный план 2", "Index", "StudyPlan")</li>
						<li>@Html.ActionLink("Раскладка", "Index", "Allocation")</li>
                        <li>@Html.ActionLink("Распределение нагрузки", "Index", "LoadDistribution")</li>                    
                    </ul>
                </div>
                <script type="text/javascript">
                    $("#menuButtons").buttonset();
                </script>
            </div>
        </div>
        <div id="main">
            
            @RenderBody()
        </div>
    </div>
</body>
</html>
